import java.io.File;

public class demo5 {
    public static void main(String[] args){
        File srcFile=new File("d:/test1.txt");
        File destFile=new File("d:/test2.txt");
        boolean ret=srcFile.renameTo(destFile);
        System.out.println("ret:"+ret);
    }
}
